<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2021/5/5
  Time: 21:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Register</title>
    <meta charset="UTF-8">
    <style>
        form table tr td{
            text-align: center;
        }
        input[type="file"]{
            max-width: 167px;
        }
    </style>
</head>
<body>
    <form action="register" method="post" enctype="multipart/form-data">
        <table>
            <tr>
                <td>用&nbsp;户&nbsp;名:</td>
                <td><input type="text" name="username" required="required"></td>
            </tr>
            <tr>
                <td>密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码:</td>
                <td><input type="password" name="password1" required="required"></td>
            </tr>
            <tr>
                <td>确认密码:</td>
                <td><input type="password" name="password2" required="required"></td>
            </tr>
            <tr>
                <td>真实姓名:</td>
                <td><input type="text" name="realname"></td>
            </tr>
            <tr>
                <td>头&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;像:</td>
                <td><input type="file" name="img"></td>
            </tr>
            <tr>
                <td>邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱:</td>
                <td><input type="email" name="email"></td>
            </tr>
            <tr>
                <td>电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话:</td>
                <td><input type="tel" name="phone"></td>
            </tr>
            <tr>
                <td colspan="2"><input type="submit" value="注册"></td>
            </tr>
        </table>
        <input type="text" name="source" hidden="hidden" value="self">
    </form>
    <div style="color: red">${err}</div>
</body>
</html>
